# -*- coding: utf-8 -*-
from common import orm
from common.utils.types import Enum

CHANNEL_TYPE = Enum({
    # "ALIPAY": (2L, "alipay"),
    # "WEIXIN": (3L, "weixin"),
    # "UPACP": (4L, "union pay"),
    # "JD": (5L, "jingdong pay"),
    # "BAIDU": (6L, "baidu wallet"),
    # "IAPP_PAY": (7L, "iapp pay"),
    # "ALIPAY_WAP": (8L, "alipay wap"),
    # "WII_PAY": (9L, "wii pay"),
    # "IAPPPAY_WAP": (11L, "iapp pay wap"),
    # "IPAYNOW_WAP": (12L, "ipaynow wap"),
    # "SWIFTPASS_WAP": (13L, "swiftpass wap"),
    # "SHENFUTONG_WAP": (14L, "shenfutong wap"),
    # "IAPP_PAY_TMP": (15L, "iapp pay tmp"),
    # "GAOYANG_CARD": (17L, "gaoyang card pay"),
    # "SWIFTPASS_SDK_ALI": (18L, "swiftpass alipay"),
    # "PAYPAYFU_ALI": (19L, "paypayfu alipay"),
    # "JUHEFU_WXWAP": (20L, "juhefu alipay"),
    # "MINGTIANYUN_ALI": (21L, "mingtianyun alipay"),
    # "MINGTIANYUN_WX": (22L, "mingtianyun weixin"),
    # "MOBAO": (23L, "mobao360"),
    # "BUU_ALI": (24L, "buu"),
    # "XUNFUTONG_ALI": (25L, "xunfutong alipay"),
    # "SWIFTPASS_SDK_WX": (26L, "SWIFTPASS weixin SDK"),
    # "CAIHONG_ALI": (27L, "caihong alipay"),
    # "MINGTIANYUN_WAP": (28L, "mingtianyun wap"),
    # "OPENEPAY_WAP": (29L, "openepay wap"),
    # "PAYTECH_WAP": (30L, "paytech wap"),
    "YOUPAY_WAP": (31L, "youpay wap"),
    # "TRPAY_WAP": (32L, "trpay wap"),
    "YOUPAY_WECHAT_WAP": (33L, "youpay wechat wap"),
    # "THREEPAY_WAP": (34L, "threepay wap"),
    "CHANGFU_WAP": (35L, "changfu wap"),
    # "ZFPAY_WAP": (36L, "zfpay wap"),
    # "RUYIPAY_WAP": (40L, "ruyipay wap"),
    # "PAYTECHNEW_WAP": (41L, "new paytech wap"),
    # "DIRPAY_WAP": (42L, "dirpay wap"),
    # "KSPAY_WAP": (43L, "kspay wap"),
    # "THPAY_WAP": (44L, "thpay wap"),
    # "MDPAY_WAP": (46L, "mdpay wap"),
    # "PAYFUBAO_WX": (48L, "payfubao wechat wap"),
    # "SKILLFULLY_UNION": (49L, "skillfully union wap"),
    # "YIAIPAY_WAP": (50L, "yiaipay wap"),
    # "KAILIAN_WAP": (51L, "kailian wap"),
    # "DUOTPAY": (52L, "DUOTPAY"),
    "KDPAY": (53L, "KDPAY"),
    "XFTPAY": (54L, "XFTPAY"),
    "JCPAY": (55L, "JCPAY"),
    "BOPAY": (56L, "BOPAY"),
    "KVPAY": (57L, "KVPAY"),
    "YHXPAY": (58L, "YHXPAY"),
    # "YISHANGPAY": (59L, "YISHANGPAY"),
    "BOEINGPAY": (60L, "BOEINGPAY"),
    "FUYINGBAO": (61L, "FUYINGBAO"),
    "OKPAY": (62L, "OKPAY"),
    "OUR_ALIPAY": (63L, "OUR_ALIPAY"),
    "AISHANGPAY": (64L, "AISHANGPAY"),
    "ZBTPAY": (65L, "ZBTPAY"),
    "YJHPAY": (66L, "YJHPAY"),
    # "E_TIMES": (67L, "E_TIMES"),
    "QUICK_MONEY": (68L, "QUICK_MONEY"),
    "JIUYINGPAY": (69L, "JIUYINGPAY"),
    "HUIHEPAY": (70L, "HUIHEPAY"),
    "ZESHENGPAY": (71L, "ZESHENGPAY"),
    "CYWPAY": (72L, "CYWPAY"),
    "GUOFUPAY": (73L, "GUOFUPAY"),
    "TONGLEPAY": (74L, "TONGLEPAY"),
    "EASYPAY": (75L, "EASYPAY"),
    "DOUDOUPAY": (76L, "DOUDOUPAY"),
    "ZEROPAY": (77L, "ZEROPAY"),
    "E520PAY": (78L, "E520PAY"),
    "ZFBPAY": (79L, "ZFBPAY"),
    # "XIPAY_WAP": (80L, "xipay wap"),
    "XLBPAY": (81L, "xlbpay wap"),
    "HUICHAOPAY": (82L, "huichaopay wap"),
    "WEIPAIPAY": (83L, "weipaipay wap"),
    "MOBAOPAY": (84L, "MOBAOPAY wap"),
    "YFTPAY": (85L, "YFTPAY wap"),
    "BFTPAY": (86L, "BFTPAY wap"),
    "YIFUBAOPAY": (87L, "YIFUBAOPAY wap"),
    "JUCHENGPAY": (88L, "JUCHENGPAY wap"),
    "HUITIANPAY": (89L, "HUITIANPAY wap"),
    # "GROUP_RECHARGE_CARD": (90L, "GROUP_RECHARGE_CARD wap"),
    "UNPAY": (91L, "UNPAY wap"),
    "WEIBAOPAY": (92L, "WEIBAOPAY wap"),
    "HBTPAY": (93L, "HBTPAY wap"),
    "JINYANGPAY": (94L, "JINYANGPAY wap"),
    "LIANYINGPAY": (95L, "LIANYINGPAY wap"),
    "DIRPAY_NEW": (96L, "DIRPAY_NEW wap"),
    "TIANJIPAY": (97L, "TIANJIPAY wap"),
    "QIAOSHOUPAY": (98L, "QIAOSHOUPAY wap"),
    "PINDUOBAOPAY": (99L, "PINDUOBAOPAY wap"),
    "YIANTONGPAY": (100L, "YIANTONGPAY wap"),
    "SELF_ALIPAY": (101L, "self alipay"),
    "SELF_BANK": (102L, "self bank"),
    "SELF_WECHAT": (103L, "self wechat"),
    "RUIYUNPAY": (104L, "RUIYUNPAY "),
    "BAISHENGPAY": (105L, "BAISHENGPAY "),
    "DIRPAY_UNION": (106L, "DIRPAY_UNION "),
    "HUANXUNPAY": (107L, "HUANXUNPAY "),
    "HONGCHUANGPAY": (108L, "HONGCHUANGPAY "),
    "HAIFUPAY": (109L, "HAIFUPAY "),
    # "HUIYINPAY": (110L, "HUIYINPAY "),
    "KS2PAY": (111L, "KS2PAY"),
    "QCMYPAY": (112L, "QCMYPAY"),
    "HUIYINTONGPAY": (113L, "HUIYINTONGPAY"),
    "XINJIEPAY": (114L, "XINJIEPAY"),
    "RUIBAOPAY": (115L, "RUIBAOPAY"),
    "YUTOUPAY": (116L, "YUTOUPAY"),
    "XUNSHOUPAY": (117L, "XUNSHOUPAY"),
    # "SUISZFPAY": (118L, "SUISZFPAY"),
    "V3PAY": (119L, "V3PAY"),
    # "BEIFUPAY": (120L, "BEIFUPAY"),
    "XUNPAY": (121L, "XUNPAY"),
    # "LIPAY": (122L, "LIPAY"),
    "ZHANGXUNPAY": (123L, "ZHANGXUNPAY"),
    "XUN1PAY": (124L, "XUN1PAY"),
    # "SHANYIPAY": (125L, "SHANYIPAY"),
    "ANFUPAY": (126L, "ANFUPAY"),
    # "E_TIMES_V2": (127L, "E_TIMES_V2"),
    # "DANDANPAY": (128L, "DANDANPAY"),
    "TONGDAPAY": (129L, "TONGDAPAY"),
    "SUFUPAY": (130L, "SUFUPAY"),
    "LITAOBOPAY": (131L, "LITAOBOPAY"),
    # "NEWKS2PAY": (132L, "NEWKS2PAY"),
    "WEIHUBAOPAY": (133L, "WEIHUBAOPAY"),
    "KAIRUIPAY": (134L, "KAIRUIPAY"),
    # "XINPAY": (135L, "XINPAY"),
    "KS3PAY": (136L, "KS3PAY"),
    "XINKEYUNPAY": (137L, "XINKEYUNPAY"),
    "WANLIHUIPAY": (138L, "WANLIHUIPAY"),
    "DUODUOPAY": (139L, "DUODUOPAY"),
    "ZHIFUTONGPAY": (140L, "ZHIFUTONGPAY"),
    # "LEZHIFUPAY": (141L, "LEZHIFUPAY"),
    "GOPAY": (142L, "GOPAY"),
    "YIHUIPAY": (143L, "YIHUIPAY"),
    "GUANGTONGPAY": (144L, "GUANGTONGPAY"),
    "YIZHIPAY": (145L, "YIZHIPAY"),
    "SC365PAY": (146L, "SC365PAY"),
    "HANPAY": (147L, "HANPAY"),
    "XINDANPAY": (148L, "XINDANPAY"),
    "MISHANGPAY": (149L, "MISHANGPAY"),
    "XUNLIANPAY": (150L, "XUNLIANPAy"),
    "BOSHIPAY": (151L, "BOSHIPAY"),
    "ZFPFPAY": (152L, "ZFPFPAY"),
    # "ZHIPAY": (153L, "ZHIPAY"),
    # "TENGPAY": (154L, "TENGPAY"),
    "XIN1PAY": (155L, "XIN1PAY"),
    # "JINRUIPAY": (156L, "JINRUIPAY"),
    "KS6PAY": (157L, "KS6PAY"),
    "MISHANG_NATIVEPAY": (158L, "MISHANG_NATIVEPAY"),
    # "ZHINENGYUNPAY": (159L, "ZHINENGYUNPAY"),
    # "DOPAY": (160L, "DOPAY"),
    "JIUFUTONGPAY": (161L, "JIUFUTONGPAY"),
    "MOSHANGPAY": (162L, "MOSHANGPAY"),
    "YINGTONGPAY": (163L, "YINGTONGPAY"),
    # "WUFUPAY": (164L, "WUFUPAY"),
    "DONGFANGPAY": (165L, "DONGFANGPAY"),
    "QLSHPAY": (166L, "QLSHPAY"),
    # "ZHINENGYUNPAY_V5": (167L, "ZHINENGYUNPAY_V5"),
    # "DOPAY_V1": (168L, "DOPAY_V1"),
    "RENRENPAY": (169L, "RENRENPAY"),
    # "XINSHUNCHANGPAY": (170L, "XINSHUNCHANGPAY"),
    "SHUNTONGPAY": (171L, "SHUNTONGPAY"),
    # "HUB365PAY": (172L, "HUB365PAY"),
    # "MISHANGPAY_V3": (173L, "MISHANGPAY_V3"),
    # "WOPAY": (174L, "WOPAY"),
    "SPAY": (175L, "SPAY"),
    "KPAY": (176L, "KPAY"),
    "XINFUTONGPAY": (177L, "XINFUTONGPAY"),
    "SHENGLIPAY": (178L, "SHENGLIPAY"),
    "MISHANGPAY_V4": (179L, "MISHANGPAY_V4"),
    "ZHIHUIPAY": (180L, "zhihuipay"),
    # "LIANRUIPAY": (181L, "LIANRUIPAY"),
    "XINDAOMIPAY": (182L, "XINDAOMIPAY"),
    # "YUNBEIPAY": (183L, "YUNBEIPAY"),
    # "SHUNTINGPAY": (184L, "SHUNTINGPAY"),
    # "HENGFUTONGPAY": (185L, "HENGFUTONGPAY"),
    "SHENGLIPAY_V2": (186L, "SHENGLIPAY_V2"),
    # "TONGYUPAY": (187L, "TONGYUPAY"),
    # "PAY83": (188L, "PAY83"),
    # "MEILIANPAY": (189L, "MEILIANPAY"),
    "SHUNFUTONGPAY": (190L, "SHUNFUTONGPAY"),
    "CHUANGYINGPAY": (191L, "CHUANGYINGPAY"),
    # "ZHONGFUTONGPAY": (192L, "ZHONGFUTONGPAY"),
    "KS7PAY": (193L, "KS7PAY"),
    # "FUTUREPAY": (194L, "FUTUREPAY"),
    "HUIFUPAY": (195L, "HUIFUPAY"),
    # "SKYPAY": (196L, "SKYPAY"),
    # "SIFANGPAY": (197L, "SIFANGPAY"),
    "SUHUIPAY": (198L, "SUHUIPAY"),
    # "YURUNPAY": (199L, "YURUNPAY"),
    # "ZHIPAY_V2": (200L, "ZHIPAY_V2"),
    # "MAKUPAY": (201L, "MAKUPAY"),
    "FEINIUBAOPAY": (202L, "FEINIUBAOPAY"),
    "HUIFULAPAY": (203L, "HUIFULAPAY"),
    "GROUPPAY": (204L, "GROUPPAY"),
    # "KAIXINGUOPAY": (205L, "KAIXINGUOPAY"),
    # "XINSHUNFUPAY": (206L, "XINSHUNFUPAY"),
    "HKERPAY": (207L, "HKERPAY"),
    # "FUHUITONGPAY": (208L, "FUHUITONGPAY"),
    "XINTAIPAY": (209L, "XINTAIPAY"),
    "CPAY": (210L, "CPAY"),
    # "YIFUPAY": (211L, "YIFUPAY"),
    # "YOUSHENGPAY": (212L, "YOUSHENGPAY"),
    # "NEWPAY": (213L, "NEWPAY"),
    "SUPERSTARPAY": (214L, "SUPERSTARPAY"),
    # "WOHUIBAOPAY": (215L, "WOHUIBAOPAY"),
    # "JUFPAY": (216L, "JUFPAY"),
    "LIMAFUPAY": (217L, "LIMAFUPAY"),
    # "HAOFUPAY": (218L, "HAOFUPAY"),
    "EHUIPAY": (219L, "EHUIPAY"),
    "LEFUPAY": (220L, "LEFUPAY"),
    "HUITONGBAOPAY": (221L, "HUITONGBAOPAY"),
    # "BAIJIEPAY": (222L, "BAIJIEPAY"),
    "TONGBAOPAY": (223L, "TONGBAOPAY"),
    # "KUAILAIFUPAY": (224L, "KUAILAIFUPAY"),
    "MOOPAY": (225L, "MOOPAY"),
    "MANAPAY": (226L, "MANAPAY"),
    "NIHOUTAOPAY": (227L, "NIHOUTAOPAY"),
    # "YILIANPAY": (228L, "YILIANPAY"),
    "DAJIPAY": (229L, "DAJIPAY"),
    "ZHIYUANPAY": (230L, "ZHIYUANPAY"),
    # "HENGFENGPAY": (231L, "HENGFENGPAY"),
    "CPAYALIPAY2BANK": (232L, "CPAYALIPAY2BANK"),
    "DUDUPAY": (233L, "DUDUPAY"),
    # "ZHIFUBANGPAY": (234L, "ZHIFUBANGPAY"),
    # "FFPAY": (235L, "FFPAY"),
    # "GAOTONGPAY": (236L, "GAOTONGPAY"),
    "QUANSUPAY": (237L, "QUANSUPAY"),
    "ONEPAYQUICKPAY": (238L, "ONEPAYQUICKPAY"),
    # "JINTUOPAY": (239L, "JINTUOPAY"),
    "SPAYUNIONPAY": (240L, "SPAYUNIONPAY"),
    # "YUNRONGPAY": (241L, "YUNRONGPAY"),
    "SHENGFUPAY": (242L, "SHENGFUPAY"),
    # "WANTONGPAY": (243L, "WANTONGPAY"),
    # "YINGXINTONGPAY": (244L, "YINGXINTONGPAY"),
    "TTPAY": (245L, "TTPAY"),
    "ANGELAPAY": (246L, "ANGELAPAY"),
    # "WANGSHIFUPAY": (247L, "WANGSHIFUPAY"),
    "BAJIEPAY": (248L, "BAJIEPAY"),
    "HYDRA": (249L, "HYDRA"),
    "FENGYUNPAY": (250L, "FENGYUNPAY"),
    # "NEWDAOMIPAY": (251L, "NEWDAOMIPAY"),
    "MEPAY": (252L, "MEPAY"),
    "ONEPAY": (253L, "ONEPAY"),
    "JUBAOPAY": (254L, "JUBAOPAY"),
    # "YIXINPAY": (255L, "YIXINPAY"),
    "HUIFUTONGPAY": (256L, "HUIFUTONGPAY"),
    "ONEPAYCASHPAY": (257L, "ONEPAYCASHPAY"),
    # "ZHIFUPAY": (258L, "ZHIFUPAY"),
    "LEFUCLOUDQUICKPAY": (259L, "LEFUCLOUDQUICKPAY"),
    "ANBAOFUPAY": (260L, "ANBAOFUPAY"),
    # "XINFUPAY": (261L, "XINFUPAY"),
    "LEFUV2PAY": (262L, "LEFUV2PAY"),
    "JBCPAY": (263L, "JBCPAY"),
    # "GBPAYS": (264L, "GBPAYS"),
    # "MIAOFUPAY": (265L, "MIAOFUPAY"),
    "JINYUPAY": (266L, "JINYUPAY"),
    "CHUANGPUPAY": (267L, "CHUANGPUPAY"),
    # "COOLPAY": (268L, "COOLPAY"),
    "ZHICHENGPAY": (269L, "ZHICHENGPAY"),
    # "CHANGTONGPAY": (270L, "CHANGTONGPAY"),
    # "SHANFUPAY": (271L, "SHANFUPAY"),
    "LIXIANFUPAY": (272L, "LIXIANFUPAY"),
    "WANDAPAY": (273L, "WANDAPAY"),
    "YOULIANPAY": (274L, "YOULIANPAY"),
    "ONEGOPAY": (275L, "ONEGOPAY"),
    "WENFUPAY": (276L, "WENFUPAY"),
    "HUIDINGPAY": (277L, "HUIDINGPAY"),
    "HPAY": (278L, "HPAY"),
    "PEIQIPAY": (279L, "PEIQIPAY"),
    "PAOPAOCHENGPAY": (280L, "PAOPAOCHENGPAY"),
    "XINWIRELESSPAY": (281L, "XINWIRELESSPAY"),
    "YIFUTONGPAY": (282L, "YIFUTONGPAY"),
    "JUBAOPENPAY": (283L, "JUBAOPENPAY"),
    "FUBAOTONGPAY": (284L, "FUBAOTONGPAY"),
    "YFPAY": (285L, "YFPAY"),
    "BAIHEPAY": (286L, "BAIHEPAY"),
    "MFPAY": (287L, "MFPAY"),
    "YIFU2PAY": (288L, "YIFU2PAY"),
    "LIXIANFU2PAY": (289L, "LIXIANFU2PAY"),
    "SHIKONGPAY": (290L, "SHIKONGPAY"),
    "LEKUPAY": (291L, "LEKUPAY"),
    "EPAY": (292L, "EPAY"),
    "MIAOJIEPAY": (293L, "MIAOJIEPAY"),
    "AMAZEPAY": (294L, "AMAZEPAY"),
    "ZHANSHENPAY": (295L, "ZHANSHENPAY"),
    "PAOPAOYINGPAY": (296L, "PAOPAOYINGPAY"),
    "FEIYUPAY": (297L, "FEIYUPAY"),
    "HENGJIEPAY": (298L, "HENGJIEPAY"),
    "YIFUBAOPAYV2": (299L, "YIFUBAOPAYV2"),
    "EASYPAYV2": (300L, "EASYPAYV2"),
    "LELIANMENGPAY": (301L, "LELIANMENGPAY"),
    "KAISUOBAOPAY": (302L, "KAISUOBAOPAY"),
    "TENGLONGPAY": (303L, "TENGLONGPAY"),
    "DINGSHENGPAY": (304L, "DINGSHENGPAY"),
    "NEWCHUANGPUPAY": (305L, "NEWCHUANGPUPAY"),
    "ANXINPAY": (306L, "ANXINPAY"),
    "LANGLANGPAY": (307L, "LANGLANGPAY"),
    "YILAIPAY": (308L, "YILAIPAY"),
    "SDPAY": (309L, "SDPAY"),
    "ANPAY": (310L, "ANPAY"),
    "CHANGSHENGPAY": (311, "CHANGSHENGPAY"),
    "SHENGDAPAY": (312, "SHENGDAPAY"),
    "QIXINGPAY": (313, "QIXINGPAY"),
    "LINGHANGPAY": (314, "LINGHANGPAY"),
    "DAFAPAY": (315, "DAFAPAY"),
    "DDPAY": (316, "DDPAY"),
    "ZHUOYUEPAY": (317, "ZHUOYUEPAY"),
    "YIBAOPAY": (318, "YIBAOPAY"),
    "SUIFUPAY": (319, "SUIFUPAY"),
    "UN2PAY": (320, "UN2PAY"),
    "NPPAY": (321, "NPPAY"),
    "WANHEPAY": (322, "WANHEPAY"),
    "NEWLANDPAY": (323, "NEWLANDPAY"),
    "KUKAPAY": (324, "KUKAPAY"),
    "HUAYINGPAY": (325, "HUAYINGPAY"),
    "ZHIXINFUPAY": (326, "ZHIXINFUPAY"),
    "HUIFUYAZHOUPAY": (327, "HUIFUYAZHOUPAY"),
    "XIGUAPAY": (328, "XIGUAPAY"),
    "GOLDENGRAGONPAY": (329, "GOLDENGRAGONPAY"),
    "XUNDINGPAY": (330, "XUNDINGPAY"),
    "NEWBAIHEPAY": (331, "NEWBAIHEPAY"),
    "DEZHUNPAY": (332, "DEZHUNPAY"),
    "XINTONGPAY": (333, "XINTONGPAY"),
    "MAJIPAY": (334, "MAJIPAY"),
    "MIAOMIAOPAY": (335, "MIAOMIAOPAY"),
    "QIANTONGYUNPAY": (336, "QIANTONGYUNPAY"),
    "XIYANGYANGPAY": (337, "XIYANGYANGPAY"),
    "CCBYPAY": (338, "CCBYPAY"),
    "ZHONGCHENGPAY": (339, "ZHONGCHENGPAY"),
    "SIJIPAY": (340, "SIJIPAY"),
    "JIEFUPAY": (341, "JIEFUPAY"),
    "SHANPUPAY": (342, "SHANPUPAY"),
    "ANJIPAY": (343, "ANJIPAY"),
    "GLOBALPAY": (344, "GLOBALPAY"),
    "TOPPAY": (345, "TOPPAY"),
    "FLOGERPAY": (346, "FLOGERPAY"),
    "XINGHUOPAY": (347, "XINGHUOPAY"),
    "HUISHENGPAY": (348, "HUISHENGPAY"),
    "SHAYUPAY": (349, "SHAYUPAY"),
    "ZHONGFAPAY": (350, "ZHONGFAPAY"),
    "HANYINPAY": (351, "HANYINPAY"),
    "XPAY": (352, "XPAY"),
    "BAOZIPAY": (353, "BAOZIPAY"),
    "NEWZHONGCHENGPAY": (354, "NEWZHONGCHENGPAY"),
})

CHANNEL_NAME = {
    31: u'YOUPAY',
    # 34: u'水滴支付',
    # 35: u'畅付wap',
    # 36: u'全球支付wap',
    # 40: u'如意wap',
    # 42: u'DR支付',
    # 49: u'维思支付',
    54: u'信付通支付',
    57: u'KVPAY支付',
    # 62: u'畅支付',
    66: u'优聚合支付',  # fuck
    # 67: u'E时代支付',
    # 71: u'泽圣支付',
    # 73: u'国福支付',
    74: u'同乐支付',
    # 76: u'豆豆支付',
    81: u'迅联保支付wap',
    83: u'微派支付wap',
    # 87: u'亿付宝支付wap',  # fuck
    # 88: u'聚成支付wap',
    # 89: u'汇天支付wap',
    # 90: u'集团点卡支付',
    # 91: u'乐天付',
    # 94: u'金阳支付',
    # 96: u'水滴扫码支付宝',
    # 97: u'天机支付',
    # 98: u'侨首贸易支付',
    # 99: u'拼多宝支付',
    # 100: u'宜安通支付',
    # 104: u'瑞云支付',
    # 105: u'百盛支付',
    # 106: u'水滴支付银联',
    # 107: u'环讯支付',
    # 108: u'鸿创支付',
    # 109: u'海富支付',
    # 110: u'汇银支付',
    # 111: u'集团闪付2支付',
    # 112: u'汽车贸易支付',
    # 113: u'汇银通支付',  # fuck
    # 114: u'信捷支付',  # fuck
    # 115: u'瑞宝支付',
    # 116: u'御投支付',  # fuck
    # 117: u'讯收宝支付',
    # 118: u'随身智付',
    # 119: u'3V支付',
    # 120: u'贝富支付',
    # 121: u'讯支付',
    # 122: u'梨支付',
    # 123: u'掌迅支付',
    # 125: u'闪亿付',
    # 127: u'E时代V2.0',
    # 128: u'蛋蛋支付',
    # 129: u'通达支付',  # fuck
    # 130: u'速付支付',
    # 131: u'荔滔博支付',
    # 132: u'新闪付2支付', # hide
    133: u'合乐支付',
    # 134: u'凯瑞支付',
    # 135: u'鑫支付', # hide
    136: u'闪付3',
    137: u'信客云支付',
    # 138: u'万利汇支付',
    # 139: u'多多支付',
    # 140: u'支付通支付',
    # 141: u'乐智付', # hide
    # 142: u'国付通',  # fuck
    # 143: u'亿惠付',
    # 144: u'广通付',
    145: u'易智付',
    # 146: u'365商城支付',
    # 147: u'悍付',
    148: u'新蛋蛋支付',
    # 149: u'密商支付',
    150: u'讯联支付',
    # 151: u'博士支付',
    152: u'智付平方支付',
    # 153: u'直支付', # hide
    # 154: u'腾支付',  # fuck
    # 155: u'新鑫支付',
    # 156: u'金瑞支付', # hide
    157: u'闪付6',
    # 158: u'密商原生支付',
    # 159: u'智能云支付',
    # 160: u'DOPAY', # hide
    # 161: u'玖付通',
    162: u'陌上支付', # hide
    # 163: u'盈通支付',
    # 164: u'五福支付', # hide
    # 165: u'东方支付',  # fuck
    # 166: u'青龙四海支付',
    # 167: u'智能云V5', # hide
    # 168: u'DOPAYV1', # hide
    # 169: u'人人支付',
    # 170: u'新顺畅支付', # hide
    171: u'顺通支付', # hide
    # 172: u'365HUB', # hide
    # 173: u'密商V3', # hide
    # 174: u'沃付支付', # hide
    175: u'SPAY支付',
    # 176: u'K付',
    177: u'鑫付通',
    178: u'胜利支付',
    179: u'密商V4',
    180: u'智慧云', # hide
    # 181: u'联瑞支付', # hide
    182: u'新稻米',
    # 183: u'云贝', # hide
    # 184: u'瞬廷', # hide
    # 185: u'恒付宝', # hide
    186: u'胜利支付_V2',
    # 187: u'通宇支付', # hide
    # 188: u'pay83', # hide
    # 189: u'美联', # hide
    190: u'顺富通',
    191: u'创赢',
    # 192: u'中富通', # hide
    193: u'闪付7',
    # 194: u'未来支付', # hide
    195: u'汇付',
    # 196: u'天空支付', # hide
    # 197: u'四方支付', # hide
    198: u'速汇支付',
    # 199: u'雨润支付', # hide
    # 200: u'直支付V2', # hide
    # 201: u'码库支付', # hide
    202: u'飞牛宝',
    # 203: u'惠付拉',  # 对方太水
    204: u'grouppay',
    # 205: u'开心果', # hide
    # 206: u'新顺付', # hide
    # 207: u'hkerpay', # 对方提现，需使用提现接口
    # 208: u'福会通', # hide
    209: u'鑫泰',
    210: u'cpay',
    # 211: u'易付', # hide
    # 212: u'优胜', # hide
    # 213: u'newpay', # hide
    214: u'超级星',
    # 215: u'沃汇宝支付', # hide
    # 216: u'jufpay', # hide
    217: u'立马付',
    # 218: u'豪富支付', # hide
    219: u'E汇付', # hide
    220: u'乐付',
    221: u'汇通宝支付',
    # 222: u'百捷支付', # hide
    223: u'新通宝支付',
    # 224: u'快来付', # hide
    225: u'moopay',
    226: u'manapay',
    227: u'猕猴桃支付',
    # 228: u'亿联支付', # hide
    229: u'大吉支付',
    230: u'致远支付',
    # 231: u'恒丰支付', # hide
    232: u'cpay支付宝到银行',
    233: u'嘟嘟支付',
    # 234: u'智付帮支付', # hide
    # 235: u'ffpay支付', # hide
    # 236: u'高通支付', # hide
    237: u'全速支付',
    238: u'onepay快捷支付',
    # 239: u'金拓快捷支付', # hide
    240: u'SPAY快捷',
    # 241: u'云融支付', # hide
    242: u'胜付支付',
    # 243: u'万通支付', # hide
    # 244: u'盈信通支付', # hide
    245: u'tt支付',
    246: u'angela支付',
    # 247: u'旺实付', # hide
    248: u'八戒支付',
    249: u'HYDRA',
    250: u'风云支付',
    # 251: u'新稻米讯科', # hide
    252: u'Me支付', # hide
    253: u'onepay支付',
    254: u'聚宝支付',
    # 255: u'亿鑫支付', # hide
    256: u'汇付通支付',
    257: u'onepay手机收银台支付',
    # 258: u'知付', # hide
    259: u'乐付云闪付',
    260: u'安宝付',
    # 261: u'信付支付', # hide
    262: u'乐付V2',
    263: u'jbcpay',
    # 264: u'gbpays', # hide
    # 265: u'秒付', # hide
    266: u'金鱼支付',
    267: u'创普支付',
    # 268: u'爽快支付', # hide
    269: u'志成支付',
    # 270: u'畅通支付', # hide
    # 271: u'闪付', # hide
    272: u'离线付', # hide
    273: u'万达支付',
    274: u'友联支付',
    275: u'oneGopay',
    276: u'稳付',
    277: u'汇鼎支付',
    278: u'Hpay',
    279: u'佩奇支付',
    280: u'泡泡城支付',
    281: u'新付无线',
    282: u'一付通',
    283: u'聚宝盆',
    284: u'富宝通支付',
    285: u'YFpay',
    286: u'百合支付',
    287: u'魔方支付',
    288: u'亿付2支付',
    289: u'离线2支付',
    290: u'时空支付',
    291: u'乐酷支付',
    292: u'epay支付',
    293: u'妙接支付',
    294: u'amaze支付',
    295: u'战神支付',
    296: u'泡泡影支付',
    297: u'飞鱼支付',
    298: u'恒捷支付',
    299: u'易付宝V2支付',
    300: u'易通宝支付',
    301: u'乐联盟支付',
    302: u'凯硕宝支付',
    303: u'腾龙支付',
    304: u'鼎盛支付',
    305: u'新创普支付',
    306: u'安心支付',
    307: u'郎朗支付',
    308: u'亿来支付',
    309: u'sdp支付',
    310: u'安支付',
    311: u'长盛支付',
    312: u'盛大支付',
    313: u'七星支付',
    314: u'领航支付',
    315: u'大发支付',
    316: u'dd支付',
    317: u'卓越支付',
    318: u'易宝支付',
    319: u'随付支付',
    320: u'un2pay',
    321: u'nppay',
    322: u'万和支付',
    323: u'新大陆支付',
    324: u'酷卡支付',
    325: u'华盈支付',
    326: u'智信付支付',
    327: u'汇付亚洲支付',
    328: u'西瓜支付',
    329: u'金龙瑞享支付',
    330: u'讯鼎支付',
    331: u'新百合支付',
    332: u'德尊支付',
    333: u'信通支付',
    334: u'麻吉付',
    335: u'喵喵支付',
    336: u'钱通云支付',
    337: u'喜洋洋支付',
    338: u'ccbypay',
    339: u'众诚支付',
    340: u'四季支付',
    341: u'捷付支付',
    342: u'杉浦支付',
    343: u'安吉支付',
    344: u'globalpay',
    345: u'toppay',
    346: u'flogerpay',
    347: u'星火支付',
    348: u'汇升支付',
    349: u'鲨鱼支付',
    350: u'众发支付',
    351: u'瀚银支付',
    352: u'xpay',
    353: u'包子支付',
    354: u'新众诚支付',
}


class Channel(orm.Model):
    """
    通道配置
    """
    __tablename__ = "channel"
    id = orm.Column(orm.Integer, primary_key=True, autoincrement=True)
    name = orm.Column(orm.VARCHAR)  # 通道名称
    service_name = orm.Column(orm.VARCHAR)  # 通道服务名称 alipay/wechat
    mch_id = orm.Column(orm.Integer)  # 商户编号
    chn_type = orm.Column(orm.Integer)  # 通道类型
    open_type = orm.Column(orm.VARCHAR)  # 支付方式sdk/url/html
    info = orm.Column(orm.TEXT)  # 通道配置数据 JSON
    status = orm.Column(orm.Integer)  # 0:不可用 1:可用
    weight = orm.Column(orm.Integer)  # 权重，影响分比例
    levels = orm.Column(orm.VARCHAR)
    rate = orm.Column(orm.FLOAT, default=3)  # 单位百分之一 实际到账为 支付总金额 * （100 - rate）/100
    quotas = orm.Column(orm.TEXT)  # 定额通道定额值
    settlement_method = orm.Column(orm.VARCHAR)
    user_day_order_count = orm.Column(orm.Integer)
    extend = orm.Column(orm.TEXT)
    ip_white_list = orm.Column(orm.VARCHAR)  # 白名单列表
    created_at = orm.Column(orm.DATETIME)
    updated_at = orm.Column(orm.DATETIME)


class ScanRepeatNo(orm.Model):
    """ 扫描支付重复订单
    """
    __tablename__ = 'scan_repeat_no'
    id = orm.Column(orm.Integer, primary_key=True, autoincrement=True)
    pay_type = orm.Column(orm.Integer)  # 通道类型, alipay, wxpay
    order_no = orm.Column(orm.Integer)  # 我方订单号
    third_no = orm.Column(orm.VARCHAR)  # 第三方订单号
    trans_no = orm.Column(orm.VARCHAR)  # 交易流水号([唯一]支付宝流水、微信流水）
    amount = orm.Column(orm.FLOAT)  # 交易金额
    created_at = orm.Column(orm.DATETIME)
    updated_at = orm.Column(orm.DATETIME)
    status = orm.Column(orm.Integer, default=0)  # 0:未处理 1:已经处理
    operater = orm.Column(orm.VARCHAR)  # 处理人
    operater_id = orm.Column(orm.Integer)  # 处理人id
    msg = orm.Column(orm.VARCHAR)  # 记录信息
